﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="SMART business">
//   SMART business.
// </copyright>
// <summary>
//   Defines the Program type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace ComparisonTool
{
    using System;
    using System.Windows.Forms;

    using ComparisonTool.Forms;
    using ComparisonTool.Models;
    using ComparisonTool.Presenters;

    /// <summary>
    /// The program.
    /// </summary>
    public static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var mainForm = new MainForm();
            var xrm = new Xrm();

            var service = new MessageService();
            var comparedResults = new ComparedResults();

            new MainPresenter(mainForm, xrm, service, comparedResults);

            Application.Run(mainForm);
        }
    }
}
